package com.byit.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.byit.domain.AppApplictionMenu;
import com.byit.domain.AppSensitiveWords;
import com.byit.mapper.AppApplictionMenuMapper;
import com.byit.service.IAppApplictionMenuService;
import com.byit.utils.PageUtil;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wumin
 * @since 2019-01-03
 */
@Service
public class AppApplictionMenuServiceImpl extends ServiceImpl<AppApplictionMenuMapper, AppApplictionMenu> implements IAppApplictionMenuService {

    @Override
    public Page<JSONObject> selectDataPage(Page<AppApplictionMenu> pageInfo, Map<String, Object> map) {
        List<JSONObject> list = this.baseMapper.selectDataPage(pageInfo,map);
        Page<JSONObject> page = PageUtil.transform(pageInfo);
        page.setRecords(list);
        return page;
    }

    @Override
    public List<JSONObject> selectAllApplication(Map<String, Object> map) {
        return this.baseMapper.selectAllApplication(map);
    }
}
